package org.example.demo.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Lenovo
 */
@CrossOrigin
@RestController
public class Controller {
    @RequestMapping("/login")
    public String login(){
        System.out.println("login success");
        return "login success";
    }
}
